package xyz.yizhifeimao.service;

import xyz.yizhifeimao.common.ServiceResponse;
import xyz.yizhifeimao.vo.CartVo;

public interface ICartService {

    ServiceResponse<CartVo> add(Integer userId, Integer count, Integer productId);

    ServiceResponse<CartVo> update(Integer userId, Integer productId, Integer count);

    ServiceResponse<CartVo> deleteProduct(Integer userId, String productIds);

    ServiceResponse<CartVo> list(Integer userId);

    ServiceResponse<CartVo> selectOrUnSelect(Integer userId, Integer productId, Integer checked);

    ServiceResponse<Integer> selectCartProductCount(Integer userId);
}
